import request from '@/utils/request'

// 查询任务步骤列表
export function listTaskStep(query) {
  return request({
    url: '/task/taskStep/list',
    method: 'get',
    params: query
  })
}

// 查询任务步骤详细
export function getTaskStep(id) {
  return request({
    url: '/task/taskStep/' + id,
    method: 'get'
  })
}

// 新增任务步骤
export function addTaskStep(data) {
  return request({
    url: '/task/taskStep',
    method: 'post',
    data: data
  })
}

// 修改任务步骤
export function updateTaskStep(data) {
  return request({
    url: '/task/taskStep',
    method: 'put',
    data: data
  })
}

// 删除任务步骤
export function delTaskStep(id) {
  return request({
    url: '/task/taskStep/' + id,
    method: 'delete'
  })
}
